package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * asp_text_record_default
 * @author 
 */
@Data
public class AspTextRecordDefault implements Serializable {
    /**
     * 说说ID
     */
    private Integer tId;
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;
    private Integer tDate;

    /**
     * 发布时间
     */
    private Date tTime;

    /**
     * 内容
     */
    private String tText;

    /**
     * 父内容，正整数表示评论，内容为回复对象的T_ID
     */
    private Integer tFId;

    /**
     * 父对象分组ID
     */
    private Integer tFGid;

    /**
     * 评论数
     */
    private Integer tFlag;

    /**
     * 分组，外键
     */
    private Integer gId;

    /**
     * 用户ID，外键
     */
    private Integer uId;

    /**
     * 删除标志，1表示已删除
     */
    private boolean delete;

    private static final long serialVersionUID = 1L;

    public Integer getTId() {
        return tId;
    }

    public void setTId(Integer tId) {
        this.tId = tId;
    }


    public Integer getTDate() {
        return tDate;
    }

    public void setTDate(Integer tDate) {
        this.tDate = tDate;
    }

    public Date getTTime() {
        return tTime;
    }

    public void setTTime(Date tTime) {
        this.tTime = tTime;
    }

    public String getTText() {
        return tText;
    }

    public void setTText(String tText) {
        this.tText = tText;
    }

    public Integer getTFId() {
        return tFId;
    }

    public void setTFId(Integer tFId) {
        this.tFId = tFId;
    }

    public Integer getTFGid() {
        return tFGid;
    }

    public void setTFGid(Integer tFGid) {
        this.tFGid = tFGid;
    }

    public Integer getTFlag() {
        return tFlag;
    }

    public void setTFlag(Integer tFlag) {
        this.tFlag = tFlag;
    }

    public Integer getGId() {
        return gId;
    }

    public void setGId(Integer gId) {
        this.gId = gId;
    }

    public Integer getUId() {
        return uId;
    }

    public void setUId(Integer uId) {
        this.uId = uId;
    }



    //
    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer gettDate() {
        return tDate;
    }

    public void settDate(Integer tDate) {
        this.tDate = tDate;
    }

    public Date gettTime() {
        return tTime;
    }

    public void settTime(Date tTime) {
        this.tTime = tTime;
    }

    public String gettText() {
        return tText;
    }

    public void settText(String tText) {
        this.tText = tText;
    }

    public Integer gettFId() {
        return tFId;
    }

    public void settFId(Integer tFId) {
        this.tFId = tFId;
    }

    public Integer gettFGid() {
        return tFGid;
    }

    public void settFGid(Integer tFGid) {
        this.tFGid = tFGid;
    }

    public Integer gettFlag() {
        return tFlag;
    }

    public void settFlag(Integer tFlag) {
        this.tFlag = tFlag;
    }

    public Integer getgId() {
        return gId;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public boolean getDelete() {
        return delete;
    }

    public void setDelete(boolean delete) {
        this.delete = delete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AspTextRecordDefault that = (AspTextRecordDefault) o;
        return delete == that.delete &&
                Objects.equals(tId, that.tId) &&
                Objects.equals(note, that.note) &&
                Objects.equals(code, that.code) &&
                Objects.equals(tDate, that.tDate) &&
                Objects.equals(tTime, that.tTime) &&
                Objects.equals(tText, that.tText) &&
                Objects.equals(tFId, that.tFId) &&
                Objects.equals(tFGid, that.tFGid) &&
                Objects.equals(tFlag, that.tFlag) &&
                Objects.equals(gId, that.gId) &&
                Objects.equals(uId, that.uId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tId, note, code, tDate, tTime, tText, tFId, tFGid, tFlag, gId, uId, delete);
    }

    @Override
    public String toString() {
        return "AspTextRecordDefault{" +
                "tId=" + tId +
                ", note='" + note + '\'' +
                ", code=" + code +
                ", tDate=" + tDate +
                ", tTime=" + tTime +
                ", tText='" + tText + '\'' +
                ", tFId=" + tFId +
                ", tFGid=" + tFGid +
                ", tFlag=" + tFlag +
                ", gId=" + gId +
                ", uId=" + uId +
                ", delete=" + delete +
                '}';
    }
}